Merge pull request #7407 from visiblelight/fix_wp8_errors

Fix compile errors on WP8
fix bug: crash in ui csbs
Merge pull request #7417 from geron-cn/chukongv3

fix bug: crash in ui csbs