Fix the platform defines chaos