EU Commission president nominee Ursula von der Leyen says she is prepared to extend Brexit beyond the 31 October deadline.