added experimental mem detection for FreeBSD, needs testing