This approach was done with a large IF block to make sure that the existing code for Linux would execute EXACTLY as it was before and only the Windows platform would execute the new code path.