Add global_t to manage global variable
Eanable more warning options