added modgui and changed makefiles to work with mod_build