Replace linux-style getmntent and co. with solaris-style functions