Fixes the allegro.c example + cosmetics on tmx_json.c