I have been told that this well known fact can be shown using only Euclid's propositions from books one to three, and cyclic quadrilaterals.
I can't figure out how to start, which quadrilateral should I have in consideration. Also the only proposition about cyclic quadrilaterals is 3.22, which I am not sure how to use.
Edit: I think I have made some progress. Let CE and AF be altitudes from C and A, the idea is to show that the line going through B and D is perpendicular to AC. Which could be done by 3.22 if either AGDE or GCFD were cyclic quadrilaterals. I don't know how to show this last part.

Since $AEFC$ is cyclic, $\angle FEB =\angle ACB$.
Since $BEDF$ is cyclic, $\angle FEB=\angle BDF$.
Thus $\angle GDF+\angle ACB=180^\circ$.