BSD version of grep as in NetBSD src/usr.bin/grep
