Add support to sparse attributes on old kernels