The BRST structure of twisted N=2 algebra