zfsboottest: sync with changes in zfs boot code

- spa status can not be called before spa init
- libzfs.h inclusion is now required
- fix alternative code for explicit root dataset lookup

MFC after:	10 days
Fix the build

Pick up htonl from netinet/in.h
zfsboottest.sh: remove checks for things that are not strictly required

MFC after:	10 days