sparse_vec: fix compilation with GCC