changes to run on solaris 10