Bug fix for loading compiled dsos
Merge pull request #179 from timmgt/dsocompilebugfix

Bug fix for loading compiled dsos merged into development branch.