build: remove unneeded EXTRA_CFLAGS from Makefile.mingw
build: allow CC to be overridden on Makefile.mingw
windows: fix warnings of MinGW -Wall -O3