Use GenerateExportHeader and include generated export headers for __declspec construct.