Fixed lexer code warnings. 

flex likes to use 'register', which is a deprecated hint in c++11