Fix some warning on MinGW.