fix build issue on Cygwin