STY/MAINT: trim dead code, reduce compiler warnings

Removed the Cephes rational arithmetic functions (euclid.c), which were
entirely unused.

Also dead statements, non-prototype (K&R) declarations.

Reduces warning log by exactly 300 lines on my box.
Merge pull request #3537 from larsmans/warnings

STY: reduce number of C compiler warnings