On FreeBSD syscalls are used, mtab doesn't exist even anymore. Other platforms follow. clean up code and warnings.