Turned on -fvisibility=hidden. Added API markers to the code.