support for static build and own compilation