Tweaks to private symbol removal to exclude callback functions