Reworked the primitives-generator.

  This way it can be executed on the systems of other folk.