Fixing a lot of build warnings, mostly impliciate declaration of functions.

Change-Id: I2257893f65ed8c25d4fade2e0fa66f077e808b75