Removed erroring imports and update build function to die on errors.