Arduino IDE 1.6.5 sketch Compilation error

Arduino: 1.6.5 (Linux), Plaat:“Generic ESP8266 Module, Serial, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS), ck”

Using library ESP8266WiFi in folder: /home/insippo/.arduino15/packages/esp8266/hardware/esp8266/2.0.0/libraries/ESP8266WiFi

/home/insippo/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -I/home/insippo/.arduino15/packages/esp8266/hardware/esp8266/2.0.0/tools/sdk/include -c -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DARDUINO=10605 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DESP8266 -I/home/insippo/.arduino15/packages/esp8266/hardware/esp8266/2.0.0/cores/esp8266 -I/home/insippo/.arduino15/packages/esp8266/hardware/esp8266/2.0.0/variants/generic -I/home/insippo/.arduino15/packages/esp8266/hardware/esp8266/2.0.0/libraries/ESP8266WiFi/src /tmp/build5221294796376183846.tmp/WiFiScan.cpp -o /tmp/build5221294796376183846.tmp/WiFiScan.cpp.o
/home/insippo/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -I/home/insippo/.arduino15/packages/esp8266/hardware/esp8266/2.0.0/tools/sdk/include -c -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DARDUINO=10605 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DESP8266 -I/home/insippo/.arduino15/packages/esp8266/hardware/esp8266/2.0.0/cores/esp8266 -I/home/insippo/.arduino15/packages/esp8266/hardware/esp8266/2.0.0/variants/generic -I/home/insippo/.arduino15/packages/esp8266/hardware/esp8266/2.0.0/libraries/ESP8266WiFi/src /tmp/build5221294796376183846.tmp/ESP8266wifi.cpp -o /tmp/build5221294796376183846.tmp/ESP8266wifi.cpp.o
In file included from /tmp/build5221294796376183846.tmp/ESP8266wifi.cpp:9:0:
/tmp/build5221294796376183846.tmp/ESP8266wifi.h:23:26: fatal error: avr/pgmspace.h: No such file or directory
#include <avr/pgmspace.h>
^
compilation terminated.
fuck you

Ubuntu 14.04 + Arduino ide 1.6.5 and sketch sample from Arduino IDE WiFiScan