These should be extern "C" function types

Change-Id: I3dcbc1b643a29ee080e5b034dccd4882a43590a4
bool improvements

Change-Id: Ic9ea40c430e0b0ab0d46bac3ba150ddac96c6acc
bool improvements

Change-Id: Ia30628e093a885165b2d8a7b1a999c0dc7ee65cd
bool improvements

Change-Id: Ibe8e80169b222e425df7016a0012591793546adf
Be explicit when using bool as integral value

Change-Id: I782942e25107ce996f3f31c3f53123c118d81838