basecurve tool: build optimized too by default
basecurve tool: detect possible overflow before it occurs
basecurve tool: fix help option and help output
basecurve tool: document the overflow error in the README