cgroup: Fix compilation broken on MinGW due to dirent->d_type
cgroup: Fix compilation broken on MinGW due to dirent->d_type

As pointed out by Eric Blake, using dirent->d_type breaks
compilation on MinGW. This patch addresses this by using
'#if defined' as same as doing for virCgroupForDriver.

kantai/libvirt-vfork,novel/fbsd-libvirt,novel/fbsd-libvirt,eskultety/libvirt,amery/libvirt-vserver,soulxu/libvirt-xuhj,andreabolognani/libvirt,wiedi/libvirt,andreabolognani/libvirt,iam-TJ/libvirt,rmarwaha/libvirt,jfehlig/libvirt,foomango/libvirt,danwent/libvirt-ovs,jeckersb/libvirt,wiedi/libvirt,novel/fbsd-libvirt,nertpinx/libvirt,kantai/libvirt-vfork,amery/libvirt-vserver,fabianfreyer/libvirt,nertpinx/libvirt,leilihh/libvirt,usc-isi/libvirt,andreabolognani/libvirt,cbosdo/libvirt,datto/libvirt,rmarwaha/libvirt1,rmarwaha/libvirt1,nertpinx/libvirt,foomango/libvirt,shugaoye/libvirt,VenkatDatta/libvirt,rmarwaha/libvirt1,warewolf/libvirt,soulxu/libvirt-xuhj,zhlcindy/libvirt-1.1.4-maintain,wiedi/libvirt,VenkatDatta/libvirt,datto/libvirt,libvirt/libvirt,foomango/libvirt,novel/fbsd-libvirt,trainstack/libvirt,eskultety/libvirt,danwent/libvirt-ovs,jfehlig/libvirt,emaste/libvirt,novel/fbsd-libvirt,zippy2/libvirt,rlaager/libvirt,jfehlig/libvirt,danwent/libvirt-ovs,cbosdo/libvirt,bjzhang/libvirt,dumbbell/libvirt,taget/libvirt,usc-isi/libvirt,taget/libvirt,shugaoye/libvirt,siboulet/libvirt-openvz,siboulet/libvirt-openvz,rbu/libvirt,danwent/libvirt-ovs,leilihh/libvirt,jardasgit/libvirt,rbu/libvirt,novel/fbsd-libvirt,emaste/libvirt,agx/libvirt,rmarwaha/libvirt1,usc-isi/libvirt,rmarwaha/libvirt,VenkatDatta/libvirt,datto/libvirt,zhlcindy/libvirt-1.1.4-maintain,rlaager/libvirt,kantai/libvirt-vfork,zhlcindy/libvirt-1.1.4-maintain,novel/fbsd-libvirt,shugaoye/libvirt,crobinso/libvirt,rlaager/libvirt,bjzhang/libvirt,soulxu/libvirt-xuhj,soulxu/libvirt-xuhj,emaste/libvirt,trainstack/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,zippy2/libvirt,rbu/libvirt,shugaoye/libvirt,jeckersb/libvirt,leilihh/libvirt,wiedi/libvirt,emaste/libvirt,iam-TJ/libvirt,cbosdo/libvirt,jeckersb/libvirt,zhlcindy/libvirt-1.1.4-maintain,usc-isi/libvirt,olafhering/libvirt,crobinso/libvirt,libvirt/libvirt,iam-TJ/libvirt,shugaoye/libvirt,datto/libvirt,VenkatDatta/libvirt,amery/libvirt-vserver,nertpinx/libvirt,dumbbell/libvirt,VenkatDatta/libvirt,elmarco/libvirt,bjzhang/libvirt,jeckersb/libvirt,jeckersb/libvirt,novel/fbsd-libvirt,taget/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,warewolf/libvirt,wiedi/libvirt,cbosdo/libvirt,amery/libvirt-vserver,taget/libvirt,elmarco/libvirt,wiedi/libvirt,iam-TJ/libvirt,trainstack/libvirt,warewolf/libvirt,elmarco/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,agx/libvirt,trainstack/libvirt,bjzhang/libvirt,kantai/libvirt-vfork,iam-TJ/libvirt,cbosdo/libvirt,siboulet/libvirt-openvz,eskultety/libvirt,jardasgit/libvirt,emaste/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,leilihh/libvirt,wiedi/libvirt,usc-isi/libvirt,leilihh/libvirt,siboulet/libvirt-openvz,bjzhang/libvirt,eskultety/libvirt,iam-TJ/libvirt,rmarwaha/libvirt,fabianfreyer/libvirt,jeckersb/libvirt,zippy2/libvirt,danwent/libvirt-ovs,warewolf/libvirt,amery/libvirt-vserver,trainstack/libvirt,zhlcindy/libvirt-1.1.4-maintain,dumbbell/libvirt,rlaager/libvirt,jardasgit/libvirt,datto/libvirt,warewolf/libvirt,dumbbell/libvirt,iam-TJ/libvirt,rmarwaha/libvirt,rmarwaha/libvirt1,nertpinx/libvirt,rbu/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,olafhering/libvirt,foomango/libvirt,trainstack/libvirt,rmarwaha/libvirt1,zippy2/libvirt,fabianfreyer/libvirt,rmarwaha/libvirt,siboulet/libvirt-openvz,jfehlig/libvirt,elmarco/libvirt,leilihh/libvirt,rmarwaha/libvirt,warewolf/libvirt,emaste/libvirt,libvirt/libvirt,dumbbell/libvirt,eskultety/libvirt,agx/libvirt,andreabolognani/libvirt,agx/libvirt,soulxu/libvirt-xuhj,kantai/libvirt-vfork,rbu/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,fabianfreyer/libvirt,libvirt/libvirt,taget/libvirt,elmarco/libvirt,rlaager/libvirt,dumbbell/libvirt,warewolf/libvirt,agx/libvirt,jeckersb/libvirt,olafhering/libvirt,olafhering/libvirt,andreabolognani/libvirt,crobinso/libvirt,jardasgit/libvirt,trainstack/libvirt,emaste/libvirt,foomango/libvirt,crobinso/libvirt,novel/fbsd-libvirt