Presentation compiler threads (1.0.x)

Backport of #53.