Make 'new/library.c' mostly functional