(1) Possible fix for Windoz build; (2) Rudimentary data reduction implementation