Build fix: allow debug build to be specified