[osx] specify target-os as 'darwin' for osx/ios, and amend sed to be compatible with BSD
[osx] support building with depends ffmpeg instead of internal
[cosmetic] drop unused variable
[osx] drop deprecated get/release_buffer
[ios] fix build
Merge pull request #232 from jmarshallnz/ffmpeg2

Changes needed for OSX/IOS built