moved -lm reference to end of lines
Merge pull request #4 from cchko/move-lm

moved -lm reference to end of lines