Fix most compile issue.