adjust the code as LXC C API reduced the public headers