Fix more warnings from MinGW g++ compiler