add -lm to resolve link issues on linux