Fixed linking MPI libraries.