Fix exported symbols on mac