Fix legacy build.