Fixed windows build. Fails FUNC_CrossPlatformFileCheck like POSIX system...

Made a separate pull request so encapsulate metadata patch could _potentially_ be merged before the larger windows permissions patch.
The `this` pointer was used to fix aliasing in this function. I'm not a fan of aliasing and would prefer to have it removed, but the upcoming metadata encapsulation patch renames the member variable `attributes` to `attributes_` as per the naming portion of the style guide. If anyone thinks the aliasing should be fixed immediately let me know.