build system: if building on OS X 10.7, apply patch to FlexLexer.h, closes #575