Fix warnings from MinGW g++ compiler