[mpi] Fix build if long library is missing