Add explicit Cocoa dependency for osx desktop capture test

Fixes build due to missing objective c functions on some configurations
Rename osx desktop capture functions to fix dynamic loading