php: Add xsl and mcrypt optional support