fix openjdk issues on centos