Fix warnings on Cygwin