Added libruntime.c for runtime functions, untested