update pet for compatibility with recent clangs