static initialization fix
Debug and Release cfg produce a lib