Attempt to fix a clang build (pthread is a library dependency of libcore).