fix compile for old wx