Use runtime_error since gcc is brain dead w.r.t. domain_error