Add flex

This is required to compile on Mountain Lion as Apple's flex isn't accepted in some configure scripts. Between patching those and merely adding GNU Flex this seemed like the easier option.