Fix non-GTK builds on Cygwin