Looks like the "M2Arduino" core that you installed is not compatible with the Arduino 1.0 libraries. You need to find an updated core for the ATmega16.
Looks like the "M2Arduino" core that you installed is not compatible with the Arduino 1.0 libraries. You need to find an updated core for the ATmega16.