Bug fix for osx. Throw Common::uninitialised exception instead of std::exception with message.