Fix errors from clang compiler