Pass on build flags correctly