Made linking of math lib optional