Doctype fix

Make sure that the doctype is first thing in the combined source.

Fixes #600