More helpful error message when trying to build using library-profiling