Haxe3 compatibility

Just a few small changes so your test project compiles with haxe trunk.