IDEA-126847 support jdk 1.6+ on osx