Fixes to get gps compiling for gcc 4.8