Revert "Removed backend dependency in ptree and ptable to facilitate unit testing in both data structures."

This reverts commit 7cf42d91d93cc48727bdd2bf0b63f7ac6a7005f7.
Corrected CC flags in check tests.
timing.c added to lib4sintl for its use in check tests.
Tests for tbchain.