fix compile bugs.

Signed-off-by: Jianmin Zhou <toandrew@infthink.com>