[osx] fixed, compiler warning about deprecated routine