fix warnings on MinGW