os_auth

* fix compiler warnings
* fix static analyzer warnings