Rewrite the build system to take advantage of mbc generated .dep files.