gpsd is able to read ublox format, and there is gpsrinex to obtain RINEX. So it may do what you want, and if not you should be able to extend it. Because teqc source code is not available, there appears to be little hope in addressing any issues in it.