Add support for --build-option alongside --global-option and use --global-option to define options that apply before the distutils command. Fixes #1928.