Link to math libraries. This fixes the build on older linux distros such as Ubuntu 10.04