Fix incorrect dependencies in Makefile