fix compile bug
add c client api