wrap mpi using code into if blocks for correct building