Fix SystemMetricsCollector compilation on OS X