Stop using libcompat in our tree.

The only thing that actually needed it was fortune(6). Move it to using
libc's regex(3) functions (taken from FreeBSD).