add -lm for log10
Merge pull request #21 from glensc/patch-1

add -lm for log10