gps: fix ISOC++11 violations