Added support for building datatypes with genmodule and