pescan: Adapt entropy calculation for the new libpe.