Build fixes

Build fixes for wheezy and quantal.

I don't no the proper things to do for debian/changelog