build: -lm on UNIX systems

Just like Android, UNIX systems need to link with -lm.