clone from http://webrtc.googlecode.com/svn/trunk/