use AV Foundation for capture

The AV Foundation capture implementation currently used for iOS works unmodified on OS X and works from OS X 10.7+.
Merge pull request #501 from pizthewiz/avfoundation-capture

use AV Foundation for capture on OS X