Add -lm to build successfully under *NIX environment.