Re-order lib/Makefile.am to (hopefully) build libzfs_core before libzfs.
Add libzfs_core.la to libzfs_la_LIBADD in lib/libzfs/Makefile.am.