Modified sources to compile under Cygwin