Add common used macros

To detect device family and screen orientation