fix bug in compact_mesh_allocations();
initialize triangle flags in obj file parser code