fix warning
fix clang related errors