FIXED: Closing last empty document increased untitled count.
Allow building with Qt 5.0