fix compiler warnings
Hi @csmall I temporarily added '-Wall' cflags and found several compiler warnings. This MR fixes them. By the way, I guess enabling '-Wall' by default would be nice.(because I am not familiar with procps building system, I don't change it in this MR).
Edited by zhenwei pi