Generate headers in samples and tests directories