kmod is unecessary if loadable module support is disabled in the kernel, so make the dependency optional.