Constify some things
Remove alloc.h
Remove global input sink