Add new build option useSourceMaps.

True (default) results in source map generation, when supported
by the optimizer. False results in no source maps.

Fixes #17425.