Apply David's comments

 * use the tcb
 * remove thr_safestack.c
 * add static assert for ABI check
 * different stack protection for statically linked and
   dynamically linked binaries