refs #9048 Fixing code which breaks Win comp in RelWithDebug mode

for Curve fitting though it can break Mac build in return.
Merge branch 'bugfix/9048_smallWinBugs' into develop