don't define tsrm ls in SAPIs under linux

as it's compiled statically with the core