Fix compile warning on MinGW