move lexer to shared
Move trace statics to shared file, move trace to own header