correct TBM programming (in case of several TBMs). To be tested
allow compilation in ubuntu 32bit