Need to specify pthread when linking