GPS fixes from Konrad127123 and rudi.
http://chdk.setepontos.com/index.php?topic=650.msg95941#msg95941
http://chdk.setepontos.com/index.php?topic=650.msg95988#msg95988
Fix compiler warnings for A3400.