The Duality between the Boussinesq and Non-Boussinesq Hydrostatic Equations of Motion