Fix minor errors causing build to fail.