Fix compiling problem under CYGWIN.

FIx #36