fix makefile to support local builds