Fixed some C functions not having return types

Signed-off-by: Jacky Boen <aqiank@gmail.com>