Only include funccheck() if we're not compiling for the kernel; the kernel does not have stdarg.h. Have the poolcheck routines use functions provided by the pool allocator for memory allocation and failure reporting. These operations depend upon the environment in which the poolchecks are running. Removed unnecessary header files from poolcheck code. llvm-svn: 87285