- Staging. - Replace gcc with $(CC) to fix build on FreeBSD 10. - Add small patch to fix incorrect use of pthread_join (found by clang).