Numbers, limit and continuity in Gauss. Some observations on the foundations of mathematics around 1800