Fixes for cygwin compile
Add cygwin compile script