Fixed compilation errors when using GCC on Cygwin.