whole netgen is compiled as shared library and added an example to use the apicd