Only treat warnings as errrors in debug builds