added -lm to libs.