Fixed subtle bug in test.

Test was reading ASCII files into a buffer the same as the
file length and was NULL terminating the string at the file
length. However, on Windows, reading an ASCII file removes
strips carriage returns making the string shorter than file
length. This resulted in junk between valid text and the NULL
termination. Fixed by directly reading files into strings.

Change-Id: I9e02af86309092d342d7101baec347c8534b3f44
COMP: Cleanup CMP0022 and CMP0023 warnings

CMake 2.8.12 introduces policies CMP0022 and CMP0023 that trigger
warnings in some of VTK's CMake code.  Fix them as follows.  The result
is a cleaner and more explicit link specification anyway.

CMP0022 warns when we set the LINK_INTERFACE_LIBRARIES property directly
without also setting the newly introduced INTERFACE_LINK_LIBRARIES
property directly.  Simply drop these settings because they are achieved
already by use of the keyword-based target_link_libraries signature.

CMP0023 warns when we use both the plain and keyword signatures of the
target_link_libraries command for a single target.  The module macros
use the keyword signature (LINK_PUBLIC/LINK_PRIVATE), so any direct
calls to the plain target_link_libraries signature are doing "private"
linking.  Add the LINK_PRIVATE keyword to such calls to make this
explicit and avoid the warning.

Change-Id: I1e5bf687733e3f19462da698c0d5e3899439bf02
COMP: Link vtkFiltersStatisticsGnuR module to KWSys

Source files in this module include <vtksys/...> headers so we need to
link to the KWSys libraries.  Link using PRIVATE_DEPENDS in module.cmake
to get the module dependency but not expose it to dependents because no
header files propagate the dependency.

Change-Id: I7159763bf2625e88dbaa7aa8c3cee3f02cc20c90
Merge topic 'fixed-testxmlfileoutput-test' into master

d718d4f6 Fixed subtle bug in test.
Merge topic 'cleanup-CMP0022-CMP0023' into master

ed6c07d0 COMP: Cleanup CMP0022 and CMP0023 warnings
Merge topic 'vtkFiltersStatisticsGnuR-needs-KWSys' into master

9e969ab6 COMP: Link vtkFiltersStatisticsGnuR module to KWSys