Add -lm to the pkg-config link line.