windows: fix warnings of MinGW -Wall -O3