move code from openfl-native-stage3d
update haxelib.json