The INS/IRS or whatever the aircraft has, incorporates 3 gyros, representing the 3 D axis, so it can sense yaw associated with wind drift. Think about how sensitiive these gyros are when they sense the earth's rotation when erecting on the ground. With windspeeds of 100+ kts in the jet stream, you better believe they take that into account, otherwise all you would need is a compass and a stopwatch to figure your position on the map.