Added support for math library. (#16)