Adds mpi_spawn() function.