Use std::exception family instead of my own tlbcore_err