Unless a platform explicitly sets DBG, default to -O2 on all architectures. Most importantly, don't default to unoptimized builds on AMD64.