Fix passing visibility through for mac.
Merge pull request #169 from glennw/mac-vis

Fix passing visibility through for mac.