Use AC_PROG_MKDIR_P and MKDIR_P instead of AM_PROG_MKDIR_P and mkdir_p

The latter are deprecated, and recent Automake makes a lot of noise
about them.