Build fixes

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