Fix bug with LoadLibrary being in a static constructor from inside a DLL. Removed FreeLibrary intentionally, let me know if you know a more elegant solution.