Fix compiler warnings on clang