Fix build and distdir.