Add semi-proper buffer parameters change functionality. Still need to remove buffers when we've finished using them in queueBuffer

Signed-off-by: Carsten Munk <carsten.munk@gmail.com>
Add JB safeguards for wayland

Signed-off-by: Carsten Munk <carsten.munk@gmail.com>