zfs: Misc fixes

* Fix libblkid detection and use it by default, instead of manually scanning every device in /dev.
This fixes issues with importing certain ZFS pools, especially during boot.
* Fix minor filesystem corruption with gcc 4.8

Both ZFS patches were cherry-picked from upstream.