Link with math library.

Thanks to Joe Larson for noticing.