Support compiling with exceptions disabled