Exchange-correlation effects on the superconductivity of a layered two-dimensional system