Fixing compile errors for Firefox native events components on Windows