correcting -lm use for linux