Mac OS: Fixed shared library symbol issues