Fixes

Fix Mac build issues. Fix flipped Mac scrolling issue. Fix issue with tableview visible rows.
I think this is probably a workaround for a different bug. Scroll positions go from [0, -height] for flipped scroll views. I think this is changed from the 3.x behavior and probably a bug.