Fixed MinGW64 compile errors.