Convert examples to use OpenSimConfig.cmake.
Remove unnecessary line from wrapping cmake.

Also, clean up an api example CMakeLists.txt.
Application tests need not specify simtk libs.