Using std::min and std::max instead of #define versions.

There were conflicts of "#define max..." and "#define min..."
so I changed it to use the ones in std.

Change-Id: I68c121afc954abddd3f90d413f8d0d42d55f989f
Merge topic '14117_build_nektar_plugin' into next

f6d2440 Using std::min and std::max instead of #define versions.