Initial CMake commit

- Start getting basic build functionality going through cmake
- Core lib and all examples build under OS X
- Seem to be working dir issues causing many samples to crash