Obtain -lm in LIBS when necessary