build: allow turning off debuginfo