[xbuild] Add workaround for pre-2.0 csc and convert full to portable debug mode