windows: fix some header madness

Nowhere near complete, but at least config.h is happy with this.