allow build with Oracle Java 7 on macos