fix cmd-line build