Update google unit test flags
Makefile.template: enforce checking BASE_DIR
update makefile using the newer Makefile.template