Fixes some clang warnings