fixes for new version of openfl and haxe