Add work-arounds for C++ features and GCC attributes not supported by Microsoft Visual C++.