build system: replace hard-coded flex include dir with that found by autoconf, #575
build system: if building on OS X 10.7, apply patch to FlexLexer.h, closes #575