Added debian compile collectd

Hey 

Thanks for the work, I made some changes to fit our needs and thought it might be helpful for other people.
1- support for write_to_graphite for ubuntu 12.04 by doing compile from source 
2- refactor some code