Fixed clang warnings for linux build