Fix "kpm build" output

- Use better format with coloring
- Fix a bug when building with unresolved dependencies