INSTALLDIRS => perl < 5.10, need to update to core compilers in @INC

fixes #358. Install into archlib on 5.8 and 5.6
C 1.49_01: fix DBI #359

special case DBI_MAGIC methods,
add an extra call to DBI->_install_method to re-initialize compile-time
internal ima pointers. ('~' DBI_MAGIC)

also store XSUBANY.any_long and use a heuristic to skip storing
compile-time pointers. storing ptrs broke Tie::Hash::NamedCapture (90)
also add example t/pg.pl: DBI_TRACE=0 t/pg
module tests for 1.49_01: fail Class::MOP

dbi_ima broke Class::MOP
TODO failing t/e_perlcc.t 21 --staticxs with darwin >5.18
C 1.49_02: skip IO::Handle bloat for *STDOUT

Since 5.18 *STDOUT uses IO::Handle as stash, which is
already properly initialized by PerlIO in core.
Do not need to save it again in *STDOUT->save_magic.
IO::Handle brought in myriads of unneeded dependencies.

This fixes t/e_perlcc tests 21 and 22 which assumed
that an empty script will not add XS modules.
C 1.49_03: fix XS boot fo Class::MOP without Moose

Class::MOP requires now Moose.xs even without Moose.pm
Also adjust XSUBANY ptr heuristic, which triggered B::parent ptrs
t/issue59.t: improve cannotconnect case
Fix invalid free of Net::SSLeay::ERROR_WANT_WRITE (95)

This is caused by an autoloaded constant, which does not exist
(Net::SSLeay::ERROR_WANT_WRITE) inside Net::SSLeay::AUTLOAD and is thus
directed to gv_autoload, which required this string to be dynamic.

Added an -O3 exception in save_pv_or_rv, similar to warnings::Bits.
module updates for 1.49_03: fixed Class::MOP
improve t/issue59.t when perl.org is down
C 1.49_04: Use system malloc for system free'd data

change cop_warnings, PMOP->op_pv, sv_debug_file,
needed for certain DEBUGGING options.
use savesharedpvn for PerlMemShared_* memory, backport
savesharedpvn for <5.8.9

With DEBUGGING savepvn returns ptr + PERL_MEMORY_DEBUG_HEADER_SIZE
which is not the address which will be freed, eg. in cop_free.

Also fixes Attribute::Handler free errors. See issue #362
C 1.49_05/CC 1.16: strip binary BM chunk from bad comppad names

Workaround an upstream B bug < 5.8.8.
repro with some pads in Carp::trust and Socket::_fake_getaddrinfo
t/testcc.sh 91

if the length of the name > 100 and < 5.8.8 and the name contains \0
(forbidden < 5.16), strip it.
module updates with 1.49_05 (fixed Class::MOP regression)
C: More CvXSUBANY heuristics. set POSIX::is any_ptr, skip rest of any_i32

Tie::Hash::NamedCapture stores some pretty high flags, skip em
Fcntl ditto

POSIX needs to set some orig libc pointers.
List::MoreUtils has 2 iterators, natatime_iterator and array_iterator,
which store their CV there.

Most if any_i32 flags are just xsubpp provided XSubAlias indices, already
set in the boot section of the XS. The other integer values ditto.

So we need to special case only some missing any_ptr packages.
DBI, POSIX, List::MoreUtils
C: Another dirty xs_init hack: detect List::MoreUtils

See #364 why this will not work.
First, we need to detect method_named(PV "bootstrap") and all its args.
The 1st arg will be the XS package to boot, the other args must be added to this method.
Currently we are missing both. It only works because the default case is covered, and
we rarelily use development XS versions (n.nn_nn).
C 1.49_06: generalize xs-loading via bootstrap Module

remove the special cases for Moose and List::MoreUtils xs loading,
which is needed if you call  bootstrap Module manually.
actually boot all non-b-c dependent @dl_modules. we assume XSLoader.
C 1.49_07: rework foreign Encode (#365)

need to seperate the Encode::xx package from Encode, and ensure
that the $xsub{} entry is filled, so that we can init2 patch it.

Fixes t/testc.sh 3053
Todo: update
C: fix t/issue32 regression. re-order @dl_modules for Encode also

1.49_06 added "Assuming xs loaded PerlIO::encoding"
but this requires Encoding with PERLQQ already being initialized.
Ensure this in a special case analog to attributes.
untodo fixed t/issue305.t tests, fixed by #365