Do not put -lumfpack in LIBS, rather use a special variable for it