Adapt pehash for the new libpe.