clean up rrdtool makefile and fix avr32 compile