Drop global temp variable, improve the code, compil windows plugins under linux, ...