Move all scripts into a sw/ directory.
Major re-organization.

- Re-organize functions and files in lib/ directory.
- Move patchelf and upx out of compile process and into separate scripts.
- Get git to compile by adding expat and correcting flags.