Fixed compilation issues on clang