Pass $(LFLAGS) after files names to fix building on Ubuntu

(As earlier suggested by Michael Gozhev)
Add Sparse_matrix_to_QMatrix function