[Part 1] Some patches for lxc supporting.