added modifications for Qt5 and GeographicLib 1.39