Fixed some pointers given by increased warning levels from clang