Use new syntax for checking build flags