rhosimulator/osx: build fixed (depricated function removed)