Fix clang compilation for >= 3.0