some misc fixes in oauth libs