Fix wxcat issues for JSB