added || defined(__CYGWIN__). closes #50