Fix warnings for no-mpi build