Hi,
The compiling error may be related with the MPI Library settings in your makefile, try to correct it as:
l MPI_INC = -I/opt/openmpi-1.4.5/include # path for mpi.h #-DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1
MPI_PATH= -L/opt/openmpi-1.4.5/lib #-lmpich
MPI_LIB = -lmpi –lpthread #-lmpich
then compile again.
l Also, you can try the new Open MPI v2.1.1 at https://www.open-mpi.org/ .