New build system for mem3