Update to compile for Haxe 3 and OpenFL.