A new method to exploit the entropy principle and galilean invariance in the macroscopic approach to extended thermodynamics