cocoa: code duplication fix
osx: added vfs_curl