Onset of Rayleigh-Benard convection in gases - classical and extended thermodynamics