move setup step before build

The setup has to be done before the build, as it is building the engine
instances which are required for the mappers.