added -lm flag to fix builds on linux