This commit adds a Windows specific unit test to dynamic_lib.rs. The new test function to load a library and use one of its symbols pretty much duplicates the Unix-specific function. I wasn't absolutely sure how to eliminate the code duplication. Fixes #8818