Add missing headers and namespaces to fix percpp build.