Remove UINT64_C, endian.h, some number adjustments

Gitian build currently ongoing.