Changes to get it working on Lubuntu: get the temp file template length right (thanks to Lars, Simon and Krzysztof); porting details & examples; default ports for Mac OSX and Linux