fixed some issues with auth for linux build and libs