Add ocamlbuild rules; improve token definition lexer.