makefile fixes for new sparse library