merge from libretro fork + minor modifications Reducing the diff as it's too hard to track down breakage when one works but not the other.
frontend/pollux: add scaling 16bpp only for now.