Added a types to a few of the C functions.