JSON config: Add 'platform' directive to be validated on --plugin and --jsplugin. This can be used to do selective platform loading with 'win', 'mac', 'x11' and 'android'. The value can be a single platform string or a list of platform strings that should load the plugin.