Link with libm
Merge branch 'master' into ubuntu