Glad you found your solution.
You mention that the dlls need to be statically linked - If you are going to be distributing the program to several PCs, you may be interested to know that you are able to include additional files in the installer, and define the directory they are installed to. Check out the options under the Source Files section in the installer.
_____________________________
- Cheers, Ed