Fix building against nightly