added windows/macos/linux changes for CCUserDefault.