updated tm compatibility functions after tm version 0.6 hit CRAN and caused qdap to error on every system.  Reference issue #187.  This should fix.  If passes on Linux code will be sent to CRAN.