fixed some weird makefile bugs

i think in osx its bad to have a directory as a dependency, as
make seems to think the directory is always newer than everything
else, even if it isnt.