[bugfix] added header memory for unique_ptr. headercheck did not always go through without this.