Adding libm to the linker flags