test: Fix tests for mpi4py.dl module
config: MPI_{Comm|Win|File}_errhandler_function defined since MPI 2.2
config: Rework default configuration based on MPI version