Build: create .d files and clean compiler output

Signed-off-by: Eduardo Silva <edsiper@gmail.com>