Fixed a linker issue: missing -lm