library and alloca cleanups