CP-7112: Protect yyliineno definition based on the version of YY_FLEX being used.

Signed-off-by: Rob Dobson <rob@rdobson.co.uk>