Production of tubes and profiles