Misc utils for haxe