Long range corrections for inhomogeneous fluids containing a droplet or a bubble