Fix pthread import