Add quadword math library

GCC implicitly calls functions like __adddi3 to handle arithmetics on long long.
Newlib depends on these functions in its printf() but expects them to be present.
Since every function is defined in its own compiling unit, only the function that are actually used will wind up in the binary.

Copied from http://ftp3.usa.openbsd.org/pub/OpenBSD/src/lib/libc/quad/ which is curtesy of the OpenBSD project (3 clause BSD license).