Avoid runtime exceptions if mixing compiler flag and proto options