Improve dependency support for Solaris 10.