Add main, mpools, defs and the Makefile.