Towards a Next-to-Next-to-Leading Order analysis of matching in $B^0$-$\bar{B}^0$ mixing