CB-5793 Add work-around for library references not working with custom output directory (ugh).