fix missing addtype_fn for netbsd