CMake: Link libm to test binaries if available.
If libm is available link it to test binaries which will otherwise fail to compile. Tested on FreeBSD 13-STABLE.
Signed-off-by: Daniel Engberg daniel.engberg.lists@pyret.net Signed-off-by: Ralph Giles giles@thaumas.net