Config procfs v2

consolidated from v1 so that there are less patches. One change is that I disabled building lprofs_llite.c as well after noticing that it is not needed either.

Patch 8, 9 were added and unrelated to procfs. I just noticed a build warning and fixed it btw.

Please see if this version is OK to be sent to Greg. Thanks!