Haxe 3 compatibility for HTML5 and Waxe (partial)