Debugged to the point it compiles and runs.
Name fix and sizeof patching to get chacha to build and link.