fix -lm linking issue that arises on Ubuntu
Merge pull request #11 from cvaske/master

Fix build issue on Ubuntu