Moved the JIT compilation of sparse matrix kernel to its own .c file, got it to work with the SparseMatrix type by including sparse_matrix.h in the code string