Compilation errors when using GCC on Cygwin

I have fixed three compilation errors when using GCC on Cygwin.