move pixel flip from headless test into HeadlessView::readPixels
fix memcpy includes/namespace
Merge pull request #673 from mapbox/pixel-flip

Move pixel flip from headless test into HeadlessView::readPixels