Fixes for --disable-second

We only have some second derivatives capabilities when it's been
configured on.

I'll merge this once moosebuild and my local testing finish.