small c++2011 fix for auth, more left to do