linking pthread to build on arch and fixing clang complete -std