Kinetic derivation of the hydrodynamic equations for capillary fluids