work around panic: free from wrong pool perl bug

If running under a threaded perl with PERL_TRACK_MEMPOOL enabled
(implicit if DEBUGGING is on), then this error is thrown at exit.  Work
around by using PL_use_safe_putenv if necessary
update gitignore
v0.12