Changed makefiles, fixed compiler errors in mtestq.c.