Set platform correctly.