Well, you can either go to the Junk Yard and find another set of stock connectors or you can break out the wiring diagram and wire in your own connector. Can't be more than 2-3 wires per light.
Download the Bentley service manual that is sticky at the top of this forum. It will have the wiring diagrams in it that you will need.
1997 E36 M3 - running stocker style right now...