Fixing a compiling problem for cgroups version

Tests for cgroups version started. Fixing a compiling problem.
Polishing a bit the code

Not replicating files and so on