SAMZA-230; fix integer warning in build
SAMAZ-258; make task.window.ms and task.commit.ms accurate