Add work-arounds for C++/GCC features not supported by MSVC

Steps towards Djinni support on Windows with Microsoft Visual Studio 2013 and newer. Note that there are still work left to make the code compile successfully on Windows, so more changes will be necessary.