-Wcast-qual fails on casting abort away from attribute noreturn in gcc