Fix Makefile to work when imported from other application