Compatibility with latest SDK and a minor improvement

* Now cocos2d-android compiles with latest sdk.
* Made it possible to instantiate a CCGLSurfaceView via xml.