Moved OS specific code from phobos