Slightly cleaner making, fixed make dependency bug

Make now puts all dep and obj files in build/[(s)dep/obj]/*.[o/d], so cleaner
root directory. Also, fixed the bug where autogenerated dependecies don'y work
properly.