Fixed Bug #7493

Special Thanks to quesoph
http://hercules.ws/board/tracker/issue-7493-compiling-with-cygwin/

Signed-off-by: shennetsind <ind@henn.et>