OpenFL 2.1 fixes

Hey guys,

This is a minor patch to help things compile with the OpenFL 2.1 beta code.
This is just a compile fix I guess? What's required to make it compatible with openfl-next?