Removed remaining kernel imports from ip lib.