GCC11 defaults to C++17, which does not allow throw specifiers. Signed-off-by: Rosen Penev <rosenp@gmail.com>