Move it to platform specific .cc file, so that it may get re-implemented platform specifically if needed. Issue #1446