[flang][CMake] CYGWIN: Fix undefined references at link time. (#67105)
While building the source of flang on CYGWIN, the process suddenly
stopped with lot of "Undefined reference" errors at link time.
According to the statement that a shared library can't have undefined
references on Windows, I applied the same fix to CYGWIN with this patch.