Fixed compiler errors for Clang.