clang compiler issues fix