Added dependency on pthread