DFT description of van der Waals forces with explicit long-range interactions