Replace pipes. Cf. ticket #102.

Source: http://forum.secretchronicles.de/topics/158#p762
Add compatibility code for levels using the old pipes.