clean up passing around of build_options, introduce build_options 'constant'