Link libcmds (used for testing) against -lm.