avr/io.h no such file or directory with the library of jm_wire

That error indicates that the jm_wire library is written for use with the AVR architecture (e.g. Uno, Leonardo, Mega, Nano, etc.). It can't be used with ESP8266.