add a header required by CB/MinGw
CB build system update

description see commit
4a616341b2dff52f1ad179d86f1801e07ede1db7
on 1.12 branch