Fixed issue with -lm in linux.