Reoganized sdk generator to share c++ libs

Most of the C++ functionality is now shared between windows and Cocos