fixing compile for cygwin
fixing compile for cygwin