Fix compile error on MinGW.