debian build fixes