Fix compilation errors under Clang.