Fixes for compiling with haxe head, including Sys.command usage.