Fix warnings with MinGW