fix compilation with OpenJDK

The links cannot be resolved as the BuildLink project does
not have the dependencies to satisfy them.
Merge pull request #3171 from yanns/openjdk-compilation

fix compilation with OpenJDK 8