Fixed Cygwin Problem

Special Thanks to quesoph.
http://hercules.ws/board/topic/1402-error-compiling-with-cygwin/

Signed-off-by: shennetsind <ind@henn.et>
Merge branch 'master' of https://github.com/HerculesWS/Hercules