Fix issues and add cc.sys.platfom