Add projecttox-core as submodule and fixed build.