buildsystem: add -lm flag required by cmdutils