- make build_kernels global, to avoid macro loop in _alt_kernel expansion