scope precompiled headers to package libraries and remove them if an error occurs in their production