Ensure pkg is not excluded in orphaned build deps trimming
Add TRIM_ORPHANED_BUILD_DEPS to allow disabling the orphaned build dep trimming