Added ccInitialize and fixed net in ccFreeAll