Build optimized by default but let the user override to debug.