Move platform-specific functions to new System namespace