Need -lpthread so that we can compile the threading test cases, even though we aren't going to be able to run them.