link to libm to fix link error

otherwise log() is undefined