Fixed WinXP and AutoBot crashing

Also fixed teleport not checking XYZ properly.