Fix build for Cygwin64/MinGW64 environment