Restore mmaps gen build

Closes #12631