Officials agree on EU military headquarters