Create a os shim for one-time initialization
Merge pull request #1255 from markbenvenuto/once

Create a os shim for one-time initialization