fixes include dirs for non-preinstalled java versions in osx

The wrong headers were used, even if java_home was set correctly, with this fix the correct include dirs are set.