Cleanup cmake for examples, and other misc cmake cleanup

I have cleaned up the cmake used for example files, using the OpenSimConfig.cmake file.

On Ubuntu, I made sure the examples installation all compile and execute without errors (for ones with an executable). I have not tested that on windows.