Fixed Mac build/run of test project.

I fixed the mac example project build settings so it would find the main function and framework and also copy the library over for run time linking.