Fix codegen.py as the library links. By ignoring missing function declarations.