Fixing plugin loader on windows. TODO: Make build not add lib, or find out why lib is added automatically on other systems