lib: die on non-function in `new` call