Added compile for platform option.