added platform type to haxe compile