Move effect removal outside of effect processing loop.

Add -D_GLIBCXX_DEBUG to Makefile for debugging iterators
Fix wrong iterator use in Item_factory and fix signed vs unsigned warning.
put contents of burned items into temporary vector,

Add them to the map after the iteration over all items on that square is done.
This avoids invalidating the iterator.
After going back from the iteminfo screen to the inventory with ESC set the selection cursor on that item and not on the first item.
fix bug in distance calculation.
Merge branch 'fix-iterator-related-crashes' of https://github.com/BevapDin/Cataclysm-DDA into merge
Merge branch 'fix-monattack.cpp' of https://github.com/BevapDin/Cataclysm-DDA into merge