Threaded fixes according to perlguts

Added PERL_NO_GET_CONTEXT
Added pTHX/aTHX macroses where is necessary