Fixed compiler warning with Cygwin
Fixed compiler error with Cygwin