Fix building from the command line