Fix compilation warnings throughout the C code base
EUCA-8675