Commenting out thread safety to get the template compile.
Better compiling instructions.
A couple more things in the PHP template.