Fixes #1841 : add missing libzfs_core to some Makefiles

I added libzfs_core to the appropriate Makefiles. "make deb" works now.