Use of specific compounds during water treatment