TI MSPDS with minor patches so that it compiles on UBUNTU 14.04