Fix usage string and factor out compile steps