You need kernel source installed to build the kernel module. This may be a bug but I don't expect it will change. If you are desperate to build without kernel source, you might try fixing libafs/Makefile to look in /usr/include instead of /usr/src/sys for kernel include files.