Make GearsNear and CheckGearNear check gears across wrap world edge
This fixes hog detection of mine, sticky mine, resurrector, seduction and crate across the world edge.
Air mine is only partially fixed.
This is version 3.1 of the iniparser library developed by N. Devillard.
See http://ndevilla.free.fr/iniparser/ for details and new versions.