correct bad logic in component selection
update build all to support osx as well as linux