fixed some compilation and runtime problems on centos6 with libtango8