Use -MMD instead of -MD for dependency calculation. This should drop most system includes from the .d files, solving occassional irritating error messages when recompiling an old tree.