fixed compilation warnings on Cygwin