If you get a "Standard library not found" error when trying to compile things with haXe on Linux, you need to copy the entire haxe/std directory to /usr/lib/haxe/std.
I had installed haxe in /usr/sness/haxe, and the libraries in there, but it couldn't find them, they needed to be in /usr/lib/haxe/std. That's kind of bizarre.