Fix checks for Cygwin-related macros.