c++: fix printf
makefile: add build for g++ and clang++
Merge pull request #11 from sbinet/wip/cxx-fixes

Wip/cxx fixes