gps: make plugin compatible with older libgps versions