add feature macro for cygwin
Merge pull request #3 from rns/compile_on_cygwin

add feature macro for cygwin