fix automatic dependency generation for files in subdirectories

gcc spits out the wrong dependencies, see: http://scottmcpeak.com/autodepend/autodepend.html (One More Tweak)