Initial port.
Command line fix - haxelib passes cwd as an extra argument.
Adding MaxRectsPacker.