McGuinness takes third at Dainese TT