Add a workaround for building with old versions of clang.