Allow command-line lexicon and lts building.

This replaces #102.