Fixed a few compiler warnings (clang)