Build fixes for the debug variant of the win32-static/win64-static build envs.