It's weird because I can see #elif defined(STM32F10X_MD) in platform.h, but still getting: fatal error: avr/io.h: No such file or directory