Compile main target with libm

Prevents "undefined reference to log" errors when making

Prevents