undefined reference to symbol '__pow_finite@@GLIBC_2.15'

In some circumstances, libm does not appear to be linking to libimagequant.  By specifying -lm after libimagequant in the makefile, it's fixed.