issue #5176, refactor UICheckBox releaseUpEvent
issue #5176, fix compile error on other platforms