Massive code cleanup.
Try building statically