try to fix openjdk7 build failure on CentOS 7 / openSUSE 13.1