fixed compiling MM engine code with MinGW environment