Fixed rules to support debian wheezy.