Fixed library compatibility problems and auth errors