updates to spl/zfs hooks to work also for cross-compiling