Reorganize C runtime.

Namespace things and sort them. Remove unused 'pop' function for locals.