cmake: Fix Cygwin build