Use in-tree libquickmail; send metadata.xml too; fix basic build errors with quickmail.