GCC11 now have -std=c++17 by default and c++17 does not allow dynamic exception specifications. Signed-off-by: Nik Konyuchenko <spaun2002mobile@gmail.com>