Link libm when necessary

Closes #6.
Apparently config.guess and config.sub changed?

No idea why.