improved Windows DLL export to silence many warnings