libgps v1.0 base code