Fix JC extensions to be compatible with VS12