fixing compile for cygwin (mingw-64)