restore the CXX-bindings feature
also cleanup some code: coding style, licenses, copyrights