fix compile error on Cygwin

Related: #255
Merge pull request #316 from k-takata/topic/cygwin-compile-error

fix compile error on Cygwin