Add optional backends to matplotlib.

This commit allows configuration of a few optional backends to the matplotlib package. Compatible with the old `pythonPackages.matplotlib` derivation since Ghostscript is enabled.