remove extra ';'.
add IO#sync and IO#sync=