+tsdl.0.8.1

Completely fixes #2130. Also fixes compilation on 32 bits platforms.