sync with the latest libjingle(r303)