fix build on cygwin