add -lm on UNIX systems

This fixes a Debian packaging issue.
Merge pull request #27 from andrewrk/patch-math-lib

add -lm on UNIX systems