Add clean target for maos
Fix maos target dependencies
Add top-level Makefile
Small changes to quiet GCC warnings