[os_crypto] fix compiler warnings