Roughening transition in mean-field and pair approximation of Ising models