Fix deprecated api usage in _macosx.m