build flags fixed