fixing build issues with mm/rbm