Fix dependencies and use local executables in Makefile