Fixing some problem on debian wheezy compilation