libs: gui: surface: optionally pass the width instead of stride to screen shot client

Summary: * DIRTY hack for broked screenshot client for some devices (such as Sony msm8660 ones)

Test Plan: * None really, should be ifdef'd properly so no risk here

Differential Revision: http://review.codefirex.com/D207

Change-Id: If09c7575ff1de341f18ad63f49547819754187d2
Signed-off-by: DHOMD <DHO@dho.im>
PMem: fix c++11 narrowing for legacy PMem

The best fix for these narrowing
violations is to use static casting

Change-Id: I900b1ebb658fc9afbfbb4943faecce9d772285ac
Signed-off-by: DHOMD <DHO@dho.im>