Make debug build configurable