The <math.h> header needs to be included. Previously I suppose libtracker-sparql.h pulled this in. !148