fix threading bugs resp. DEBUG_LEAKING_SCALARS

omit DEBUG_LEAKING_SCALARS when the interpreter does not support it.
this fixes issue 100, by not overwriting my_perl structures at the end.

Fixed conflicts:
	lib/B/C.pm