misc fixes for win32 plugin_test compat code