Fixed errors in build.