Add -lm to linker

This fixes the build for me on Debian (testing).