Add CMakeLists and platform config.h for Mac