Fix for possibility of race condition in point-to-point MPI communications. Fixes for warnings produced by clang.