Updated GLSurfaceViewCupcake to GLSurfaceView from Android 4.3 (API 18) so to properly support onAttachedToWindow and onDetachedFromWindow