osx: Fix deprecation warning