Generalize makefile infrastructure, make buildtest run with and without root.