Fix compilation errors on Clang.