Add Library functions and headers for the code examples of tlpi