fixed #1647: Renaming enumerations to Cocos2d-x style. ERROR and ERROR_TIMEOUT is defined as macros on Windows, fuck it.
fixed #1647: [WebSocket] Fixing compilation errors on win32.