I found that the source for the libzfs is under /usr/src/cddl/opensolaris/lib/libzfs and all the sources are there, however I'd like to know if there is not a binary to link to and, if someone has done, how to set up a cross compilation environment.
Thanks