Enable context lost / restore for opengl

This PR along with https://github.com/openfl/lime/pull/273 let the opengl context be restored after being lost.