Changed interface to take pointers to modules when adding modules to an executable