Check if the generation script in https://github.com/DlangScience/OpenMPI can be adapted for this purpose.