Add error checking when compiling a pack if the library files cannot be
copied due to an error