fix build of pt