java/openjdk12: fix build on powerpc64le
This ports r556940 to java/openjdk11.
Approved by: tier 2 blanket