workarounds for Visual C++ build issues