move math lib linking to end
Merge pull request #79 from andrewjpage/master

move math lib linking to end