Compactness properties for linear transport operators with abstract boundary conditions in slab geometry