Removed compiler errors with clang