Work around weird GCC and Clang bugs