Rewrote and fixed C++ examples on Mac, this will break Linux and Windows examples projects temporarily