Fokker-Planck approximation for N-dimensional nonmarkovian langevin equations