Fix platform definitions.