Rename setplatform to "platform" with default nil value.