Fixed autotools errors and made game handle a global var