Removed unused build targets
Added missing exception to error