Ninja doesn't use non-const refs anywhere else.