fix spec file to respect old status of collectd and also fix build error...

...s