Added include statement for pthread