Make TMS Async Multiplatform

Port TMS Async to Freepascal and add a linux-api.