Strange errors in math.h when trying to compile a project

This is the giveaway:

/usr/lib64/gcc/avr/4.5.3/../../../../avr/include/math.h:426:15: error: expected identifier or '(' before 'double'

Line 426 is the declaration for the round function. You need to upgrade to v1.0.1 or in wiring.h: