SWIG C++ interface, problems using other C++ dll

I’ve started playing around with SWIG and its code generation for ruby. This works perfectly. However, I also have another C++ dll with all the core functionality that I need to call from my SWIG plugin. Right now, I need to copy my core dll into my sys32 folder or alongside the Sketchup.exe to be able to call it. This works fine for me, but doesn’t seem to be a good practice when I want to distribute the extension.

Any ideas?