make it compatible to be built under cygwin.