Added support for compiling on cygwin