Add symbol versioning for shared libraries