Fixed (f)lex link problem on OSX Mountain Lion

Linking to flex suddenly failed after upgrade from Lion to Mountain Lion
Reason: Apple returned to providing lex instead
-> have to use libl.a on 10.8+

Solved by adding check whether OSX version is ML (10.8) or greater to
decide which is the appropriate LEXLIB