darwin support

Retry of https://github.com/mackerelio/mackerel-agent/tree/os-darwin. Currently just compiles and supports only minimum spec/metrics.

- Moved `metricLinux.PluginGenerator` to `metric.PluginGenerator` because most code are reusable.