To overcome the "No room for a new \write", the morewrites package (http://www.ctan.org/pkg/morewrites) uses a file with the .mw extension
@@ -78,6 +78,9 @@
# minted
*.pyg
+# morewrites
+*.mw
+
# nomencl
*.nlo