Fix issue with inlining functions in other namespaces