make dynamic loading only happen on Windows.