Fix compile bugs.