Correlation Energy of A Two-Dimensional Electron Gas from Static and Dynamic Exchange-Correlation Kernels