Fix API call on older OS X versions.