fix-ups to make things compile DLL-style on windows