Fixed compiler warnings with Clang