The initial mass function and global rates of mass, momentum, and energy input to the interstellar medium via stellar winds