Fix some compile issue.