C++: fixes for clang

Allow OmeroCpp to build using clang++ on MacOS 10.9