code to load dynamic libraries on windows