added -lm to the linker option