Fix building of tests (roofit and math more dependency)  in mathcore (do as in the master)