fix circular dependency in Makefile