Rejigger things a bit so that we only define CALLCONV when building as a DLL.