Add cmake code to create library for c++

Moreover, add missing include in ```src/stack-template.t.cpp```
Could you elaborate a bit on your targeted application ?
Unless you want to move to a pure C++ implementation I am not sure to fully understand
the purpose of putting everything in one library.
Currently the fine granularity allows to avoid unnecessary binary dependencies.
Thanks to the huge work of Florent and Thomas, this is almost not noticeable in python.
So, I would like to fully understand your point of view before introducing a new linking system
likely to add noise in the comprehension of the overall system.

Best,
Olivier.