Switch to SHARED library and hide private symbols