[shared] fix build failure introduced by 6347a4903a4ef84756eb15238de608bf61710bba