Fixed all compilation warnings with clang