Fix missing readlink on newer compilers