Fix errors in build.