Fixing debian build issues