Fix the plugin API dependencies on Windows and include the correct version of the header.