Hack to allow disabling exceptions and RTTI

Only for headers