PEssentials3: fixed build errors with recent JDKs