Fixed compilation issues under Wheezy