Allow dynamic linking on windows