cmake: fix Cygwin compile flags