Adds support for openfl
Small fixes for haxe3/openfl