Build main first, then run it.