Add math library.