Fix build on FreeBSD 9.*
FreeBSD 9.* has an older, noncompatible version of flex. Fix this by using flex from ports instead.
Submitted by: kwm