OSX: Fix 10.9 deprecation warnings