Inclusion of 'avr/lib' is dangerous for avr-gcc as it points the linker to the wrong library file. There has been a problem reported before and I thought it was removed after that. In case it isn't, auto inclusion of 'avr/lib' for avr-gcc should be removed as avr-gcc finds the correct library file by some mechanism implemented in source code.