fixing compile for cygwin