Replace Platform with Os enum

Change-Id: I96583bf463ac347929fe67afbc3014b1bd328399