Increase stack size from 256 bytes to 4KB. Disable debug.
Implement support for freeing memory. Free thread contexts when they go away.