bugfixes to pch windows