Pulled from RTKLIB original master