Checking if libm is needed