Fixes to finding math library.