prepare for transition to C++
transition to C++
Makefile: add version to archive generation
cleanup
Makefile: fix issues with C++
Makefile: generate dependencies more efficiently