Fix shared-library issue on Macs
Fix function ambiguity in TMinuit on Macs