Don't change directory during build rules.
Fix cyclic dependency.
Merge pull request #2 from seomoz/cbf/fix-makefile

Fix some Makefile bugs