[shared] OSStrore_Put: do not use callers pointer as key, strdup() it
[shared] fix clang analyzer warning
[shared] fix compiler warnings