Use -Z instead of -z to build kernels. This is consistent with NetBSD's