* fix compile failure on VS express versions

This commit fixes #168 (on cocos2d/cocos2d-console) and #8936 (on cocos2d/cocos2d-x).