Fix _FORTIFY_SOURCE compilation warning and other minor fixes.

Issue #8
Merge branch 'fixFortifySourceWarning' into msvtk

* fixFortifySourceWarning:
  Fix _FORTIFY_SOURCE compilation warning and other minor fixes.