fix some ccall return types