MinGW: build fix for common.cpp
Merge with stable