LINK : error LNK2001: unresolved external symbol _DllMainCRTStartup
_DllMainCRTStartup:
D shared libs on windows still require a DllMain. If you follow this post here[1] to create one, it should solve some of your problem.
[1] http://wiki.dlang.org/Win32_DLLs_in_D Bit