I found the following bug:
In the file (WinAVR-dir)/avr/include/avr/iomx8.h, the 3 lines:
#define OCIE0B 3
#define OCIE0A 2
#define TOIE0 0
should be:
#define OCIE0B 2
#define OCIE0A 1
#define TOIE0 0
Please let me know if I should report this to the development team also - if they won't read this.