Import from numDeriv.

Seems to be required for recent R (CMD check)