Enable C++11 mode on G++/clang platforms, use std::runtime_error() instead of std::exception, which does not have constructor taking const char*