Fix warnings on MinGW.