Fix osx compilation issues by including the proper headers
Add nfIsCache flag
Properly show nfIsCache flag in python