Fix non-deprecated build.