Fix compilation and remove warnings with clang 3.4.