Fix to prevent exportable symbol conflicts when used as static/shared library