Factor DLL API macros into its own shared header for tests.