Fix compatibility issues with oauth2

Fix compaitibility issues with golang/oauth2 commit (cf: commit b8463885646621ad3debe22376c60031788d9f5e)