Bug fix for loading dll unders windows