Utility: Move OS specific implementations into separate files