ESP8266: Add compile flags and use different malloc
Fixed bug in pico_socket_shutdown
esp8266: extra cast