AC-7791 - Made some fixes for conditional compiles with
--enable-cgroups.