Link to math.h explicitly.

Without explicitly linking, the model fails to compile on Linux
machines.