Fixed placement of -lm option to link against the math library. Static l...

...ib -l options can't go in cflags, since they're specified before input files, and static libs are only checked for undefined references that the linker already knows need defining.

Fixes the build on Ubuntu 12.04.

Now in its own branch just for merging upstream, so it doesn't have to come with all my setup.py changes.