Add -dbg for debug builds and other suffixes.