Moved main() into xsdc.cpp (regress in unit tests)
Revert "Moved main() into xsdc.cpp (regress in unit tests)"

This reverts commit fb46703ba855f6e4c8eb8039e1180f39aa7329ff.