Fixed plugin reload use-after-free
Fixed perl VM double-termination (through PERL_SYS_TERM()'s double-call)
Changin #ifdef locations for perl plugin pre-init
Merge pull request #3 from Aorimn/master

Two fixes regarding plugin management