Doesn't compile with Arduino 1.0.6

/Applications/Arduino 1.0.6.app/Contents/Resources/Java/libraries/arduino-ESP8266/ESP8266.cpp: In member function 'int ESP8266::read(uint8_t*, size_t)':
/Applications/Arduino 1.0.6.app/Contents/Resources/Java/libraries/arduino-ESP8266/ESP8266.cpp:647: error: invalid conversion from 'uint8_t*' to 'char*'
/Applications/Arduino 1.0.6.app/Contents/Resources/Java/libraries/arduino-ESP8266/ESP8266.cpp:647: error:   initializing argument 1 of 'size_t Stream::readBytes(char*, size_t)'



/Applications/Arduino 1.0.6.app/Contents/Resources/Java/libraries/arduino-ESP8266/ESP8266.cpp: In member function 'int ESP8266::timedPeek(unsigned int)':
/Applications/Arduino 1.0.6.app/Contents/Resources/Java/libraries/arduino-ESP8266/ESP8266.cpp:729: error: expected `while' before 'ESP8266'
/Applications/Arduino 1.0.6.app/Contents/Resources/Java/libraries/arduino-ESP8266/ESP8266.cpp:729: error: expected `(' before 'ESP8266'
/Applications/Arduino 1.0.6.app/Contents/Resources/Java/libraries/arduino-ESP8266/ESP8266.cpp:729: error: expected primary-expression before 'unsigned'
/Applications/Arduino 1.0.6.app/Contents/Resources/Java/libraries/arduino-ESP8266/ESP8266.cpp:730: error: expected `)' before '{' token
/Applications/Arduino 1.0.6.app/Contents/Resources/Java/libraries/arduino-ESP8266/ESP8266.cpp:730: error: expected `;' before '{' token
/Applications/Arduino 1.0.6.app/Contents/Resources/Java/libraries/arduino-ESP8266/ESP8266.cpp:737: error: a function-definition is not allowed here before '{' token
/Applications/Arduino 1.0.6.app/Contents/Resources/Java/libraries/arduino-ESP8266/ESP8266.cpp:888: error: expected `}' at end of input