Make derivative_approximation compile both on MSVC and gcc.
Debugging grid_tools.