Only treat warnings as errors for release builds