fix compile error on Cygwin

The latest version cannot compile on Cygwin.
Related: #255