Fixes for pre-C++11 builds. Introduce PANGOLIN_OVERRIDE define.