fix -lm problem under Gcc4.6