Fix some compile bugs.