Adding a version resource to a shared native library

I have my shared library building. Now I want to add a Windows version resource to it. I added the ‘windows-resoirces’ plugin to my build, and put my rc file in the default location. However, my build if failing when it goes to link the resource to the file. It is due to the build not picking up the linker switches I previously set and were used when creating the DLL without the version resource. Here are the various options files:

linkDebugWindows
/DEBUG
-nodefaultlib:msvcrt.lib
-nodefaultlib:msvcmrt.lib
-nodefaultlib:libcpmt.lib
-nodefaultlib:libcmt.lib
-nodefaultlib:libc.lib
/OUT:D:\git\test\build\lib\main\debug\windows\test.dll
/NOLOGO
/DLL
/IMPLIB:D:\git\test\build\lib\main\debug\windows\test.lib

linkTestSharedLibrary
/OUT:D:\git\test\build\libs\prokafka\shared\test.dll
/NOLOGO
/DLL
/IMPLIB:D:\git\prokafka\build\libs\test\shared\test.lib

Error is

LINK : warning LNK4068: /MACHINE not specified; defaulting to X64
LINK : error LNK2001: unresolved external symbol _DllMainCRTStartup
Error goes away if I add the -nodefaultlib switches and manually link.

Any thoughts?

Dave