Compile fix: Seems we need to link to the math library on some platforms

This needs to be done at least on Xubuntu 13.10.