Fixed up dynamic loading so that external libraries can be used on Windows -- no unresolved symbols in the DLL.