Add -lpthread to ldOptions. #37