Fixes

Fix Mac build issues. Fix flipped Mac scrolling issue. Fix issue with tableview visible rows.
This is consistent with other changes I made regarding _flipYCoordinates.