The Friedrichs extension of regular ordinary differential operators