Fix warnings and errors picked up by NaCl C compiler
Allocate and free memory correctly.  Fixes: writing past allocated memory bounds
Fixes

* Fix macro definition
* Fix errors when including tommath.h in a NaCl build
Save all files left over in development directory

Some of these files may be useful at some point, maybe; save them before
refactoring