Made nmea and gps handling thread-safe (EPD-57)