Build plugin hive on windows

Fix the build problem you mentioned. Tested with the minimal sample, similar to libav's one.