Add beginnings of standard library and C API