tests: move main() in c-bindings test to executable.
'detail' headers added.
CMake: scripts improved.
packaging: debianization improved.