Fix some compiler warnings with clang