several minor cleanups and makefiles for zmpkg

several minor cleanups and makefiles for zmpkg