Small patch for haxe3 RC compatibility

Some changes to help with compiling on Haxe3-RC.

Still need to do some actual testing, but my stuff is compiling for now...