Fixed read_auth_key problem (and made code compile on Clang 3.2).