Fixed all warnings in kpoint1d.cc