fixed dependencies for FreeBSD (the sed there is far too stupid!)