Add -lm to main compilation step

Prevents "undefined reference to log" errors when building with the default target