Fixed a build error with MinGW