waf: Add program checks for valgrind/gdb, add codeformat target, re-add '-c' to intltool-merge, closes #138.

Codeformat style is not perfect, custom styleset to be added.