fix lsmsr build