Fix debian 7 build errors