Fixed compile errors in Cygwin64