fixed the HAVE_LIBXPM-dependent compile errors